<script src="common.js"></script>
<script>
  const url = new URL('../../resources/dummy.html', location);
  const priorityPromise = observeAndReportResourceLoadPriority(url);

  const xhr = new XMLHttpRequest();
  xhr.open('GET', url, false);
  xhr.send();

  if (xhr.status !== 200)
    priorityPromise.then(reportFailure)
  else
    priorityPromise.then(reportLoaded)
</script>
